package com.bsj.power.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bsj.power.common.def.dto.path.PathBanDTO;
import com.bsj.power.common.def.dto.path.PathSearchDTO;
import com.bsj.power.common.def.entity.path.Path;
import com.bsj.power.common.def.vo.pls.PathVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author LiJiaXin
 * @version 1.0.0
 * @description PathMapper
 * @time 2024/4/20 10:51
 */
@Mapper
@Repository
public interface PathMapper extends BaseMapper<Path> {

    /**
     * 统计围栏数量
     *
     * @param pathSearchDTO
     * @return long
     * @author ljx
     * @time 2024/4/26 20:18
     */
    long countPath(PathSearchDTO pathSearchDTO);

    /**
     * 围栏分页
     *
     * @param pathSearchDTO
     * @return java.util.List<com.bsj.power.common.def.vo.pls.PathVO>
     * @author ljx
     * @time 2024/4/26 20:19
     */
    List<PathVO> pagePath(PathSearchDTO pathSearchDTO);

    /**
     * 是否禁用
     *
     * @param pathBanDTO
     * @return void
     * @author ljx
     * @time 2024/12/30 9:29
     */
    Integer isBan(PathBanDTO pathBanDTO);
}
